class Dog:
    def say(self):
        print("i'm a dog")


class Cat:
    def say(self):
        print("i'm a cat")


class Duck:
    def say(self):
        print("i'm a duck")


lst = [Dog,Cat,Duck]

for animal in lst:
    animal().say()